//
//  WorkerUnauditedTableViewCell.m
//  work
//
//  Created by 徐宏飞 on 16/6/5.
//  Copyright © 2016年 方伟. All rights reserved.
//

#import "WorkerUnauditedTableViewCell.h"
#import "WorkerUnauditedModel.h"


@interface WorkerUnauditedTableViewCell ()


@property (weak, nonatomic) IBOutlet UIButton *btnFunction;
@property (weak, nonatomic) IBOutlet UILabel *lblMessage;


@end

@implementation WorkerUnauditedTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)btnfunctionAction:(id)sender {
    [self.delegate functionBtnClick];
    
}


-(void)setModel:(WorkerUnauditedModel *)model{
    _model = model;
    [_btnFunction setTitle:_model.btnTitle forState:UIControlStateNormal];
    _lblMessage.text = _model.lblMessage;
    _btnFunction.hidden = _model.hidenBtn;
}


@end
